<?php
class collect extends spController
{
	function collect_user()
	{
		if(!$_SESSION['visitor_id']) return false;
		if(!spAccess('r',  'collect_user_' . $_SESSION['visitor_id'])) {
			$m_collect_user = spClass('m_collect_user');
			$result = $m_collect_user->addcollect();
			spAccess('w',  'collect_user_' . $_SESSION['visitor_id'], $result, 604800);
		}
	}
}
?>